package com.cd.system.jpa.entityImport;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author admin
 * @description 任务详细信息表 ||  ||
 * @date 2024-03-25
 */
@Entity
@Data
@Table(name = "qrtz_job_details")
public class QrtzJobDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    @EmbeddedId//复合主键列
    private QrtzJobDetailsKey id;


//    @OneToMany(mappedBy = "qrtzJobDetails", cascade = CascadeType.ALL, orphanRemoval = true)
//    private Set<QrtzTriggers> qrtzTriggers = new HashSet<>();

    //@Comment("相关介绍")
    @Column(name = "description")
    private String description;

    //@Comment("执行任务类名称")
    @Column(name = "job_class_name", nullable = false)
    private String jobClassName;

    //@Comment("是否持久化")
    @Column(name = "is_durable", nullable = false)
    private String isDurable;

    //@Comment("是否并发")
    @Column(name = "is_nonconcurrent", nullable = false)
    private String isNonconcurrent;

    //@Comment("是否更新数据")
    @Column(name = "is_update_data", nullable = false)
    private String isUpdateData;

    //@Comment("是否接受恢复执行")
    @Column(name = "requests_recovery", nullable = false)
    private String requestsRecovery;

    //@Comment("存放持久化job对象")
    @Column(name = "job_data")
    private String jobData;

}

